<template>
    <Layout>
        <div>
            porst1
            <ul>
                <li v-for="(item,index) in list" :key="index">
                    {{item.body}}
                </li>
            </ul>
        </div>
    </Layout>
</template>
<script>
import axios from 'axios'
export default {
    name: "Posts1",
    data () {
        return {
            list: []
        }
    },
    async created() {
        const {data} = await axios.get('https://jsonplaceholder.typicode.com/posts')
        this.list = data
    }
}
</script>
<style scoped>

</style>